/* GLOBAL FONT */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}

/* HEADER BASE */
.irs-header {
    background-color: #7a3f3f;
    padding: 14px 0;
}

/* MAIN LAYOUT */
.header-wrapper {
    width: 95%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .header-wrapper {
        gap: 20px;
    }
}

/* LOGO BLOCK */
.logo-block {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 260px;
}

@media (max-width: 600px) {
    .logo-block {
        min-width: auto;
        width: 100%;
    }
}

/* GOLD BADGE */
.logo-badge {
    width: 82px;
    height: 82px;

    /* Real gold metallic gradient */
    background: linear-gradient(
        145deg,
        #fff2b2 0%,
        #f4d06f 25%,
        #d4af37 50%,
        #b8962e 75%,
        #f9e08c 100%
    );

    border-radius: 18px;

    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;

    /* Depth + shine */
    box-shadow:
        inset 0 2px 4px rgba(255,255,255,0.6),
        inset 0 -3px 6px rgba(0,0,0,0.25),
        0 8px 18px rgba(0,0,0,0.35);
}

.logo-badge img {
    width: 55px;
}

/* LOGO TEXT */
.logo-text {
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.3;
    text-align: center;
}

/* PRIMARY NAVIGATION */
.primary-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 14px;
    position: relative;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.25s ease;
}

.nav-toggle:hover {
    background-color: rgba(255, 255, 255, 0.35);
}

.nav-toggle-bars {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-toggle-bars span {
    width: 20px;
    height: 2px;
    background-color: currentColor;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.primary-nav.open .nav-toggle-bars span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.primary-nav.open .nav-toggle-bars span:nth-child(2) {
    opacity: 0;
}

.primary-nav.open .nav-toggle-bars span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 10px;
    transition: background-color 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.35);
}

.nav-link-highlight {
    background-color: #c79b3b;
    color: #2b1b0e;
    font-weight: 600;
}

.nav-link-highlight:hover {
    background-color: #e0b654;
}

.dropdown-trigger {
    display: none;
    border: none;
    background: transparent;
    color: inherit;
    margin-left: 6px;
    cursor: pointer;
    font-size: 0.8rem;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: 220px;
    background: #ffffff;
    color: #2b1b0e;
    border-radius: 12px;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
    padding: 12px 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 20;
}

.dropdown-panel a {
    display: block;
    padding: 8px 18px;
    color: #2b1b0e;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.dropdown-panel a:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

@media (min-width: 1025px) {
    .dropdown:hover > .dropdown-panel,
    .dropdown:focus-within > .dropdown-panel {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .dropdown > .nav-link::after {
        content: "\f107";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 0.65rem;
        margin-left: 6px;
    }
}

@media (max-width: 1024px) {
    .primary-nav {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .nav-toggle {
        display: inline-flex;
        justify-content: center;
    }

    .nav-menu {
        flex-direction: column;
        align-items: stretch;
        background-color: rgba(0, 0, 0, 0.35);
        border-radius: 16px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    }

    .primary-nav.open .nav-menu {
        max-height: 1000px;
        opacity: 1;
        padding: 12px;
    }

    .nav-link {
        justify-content: space-between;
        width: 100%;
    }

    .dropdown-trigger {
        display: inline-flex;
    }

    .dropdown-panel {
        position: static;
        background: rgba(255, 255, 255, 0.08);
        box-shadow: none;
        margin-top: 8px;
        border-radius: 12px;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        opacity: 1;
        transform: none;
    }

    .dropdown.open > .dropdown-panel {
        max-height: 600px;
        padding: 12px;
    }

    .dropdown-panel a {
        color: #ffffff;
    }

    .dropdown-panel a:hover {
        background: rgba(255, 255, 255, 0.1);
    }
}

.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    background: #000;
}

/* VIDEO STACK */
.video-wrapper {
    position: absolute;
    inset: 0;
}

.bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 1.4s ease-in-out, transform 8s ease;
}

.bg-video.active {
    opacity: 1;
    transform: scale(1);
}



/* OVERLAY */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(10, 5, 5, 0.75),
        rgba(10, 5, 5, 0.85)
    );
    z-index: 2;
}

/* CONTENT */
.hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.hero-text-block {
    width: 100%;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0 auto;
}

.hero-meta {
    margin-top: 0.5rem;
}

.intro-theme {
    margin-top: 0.25rem;
}

.hero-text-block > * {
    margin: 0;
}

.hero-logo {
    width: 110px;
    margin-bottom: 18px;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 20px;
    line-height: 1.5;
    margin-bottom: 14px;
}

.hero-meta {
    font-size: 14.5px;
    opacity: 0.85;
}

/* ORBITAL LIGHT GRAPHIC */
/* ===============================
   Orbit Arc Effect (APPENDED)
   =============================== */

.orbit-arc {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 100px;
    z-index: 4;
    opacity: 0;
    pointer-events: none;
}

.orbit-arc path {
    fill: none;
    stroke: rgba(255, 255, 255, 0.65);
    stroke-width: 2;
    stroke-dasharray: 800;
    stroke-dashoffset: 800;
}

/* ANIMATIONS */
@keyframes orbit {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.hero-title,
.hero-subtitle,
.hero-meta {
    opacity: 0;
    transform: translateY(18px);
}

.hero-title {
    animation: reveal 1.2s ease-out forwards;
    animation-delay: 0.4s;
}

.hero-subtitle {
    animation: reveal 1.2s ease-out forwards;
    animation-delay: 0.7s;
}

.hero-meta {
    animation: reveal 1.2s ease-out forwards;
    animation-delay: 1s;
}

@keyframes reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .hero-text-block {
        align-items: center;
        max-width: 420px;
    }

    .hero-title {
        font-size: 46px;
        line-height: 1.1;
    }

    .hero-subtitle,
    .intro-theme,
    .hero-meta {
        font-size: 16px;
        line-height: 1.6;
    }
}

/* ================= EVENT ROAD MAP ================= */

.event-roadmap {
    padding: 4rem 2rem 5rem;
    background: #EEE0D0;
}

.roadmap-title {
    text-align: center;
    font-size: 1.8rem;
    letter-spacing: 0.08em;
    margin-bottom: 3rem;
    color: #7a3f3f;
}

/* Wrapper gives equal margins */
.roadmap-wrapper {
    position: relative;
    max-width: 1200px;
    margin: auto;
}

/* ================= CATEGORY LABELS ================= */

.category-label {
    position: absolute;
    top: -2.2rem;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    font-weight: 600;
    text-transform: uppercase;
}

.category-label.pre  { left: 12%; color: #eb8c3f; }
.category-label.day1 { left: 42%; color: #c9660a; }
.category-label.day2 { left: 78%; color: #9e6208d3; }

/* ================= ROAD LINE ================= */

.road-line {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    align-items: center;
    gap: 0;
    position: relative;
    padding: 2.5rem 0;
}

/* Base line */
.road-line::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(
        to right,
        #eb8c3f 0%,
        #c9660a 45%,
        #9e6208d3 85%
    );
    z-index: 0;
    border-radius: 2px;
}

/* ================= START / END CAPS ================= */

.road-cap {
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    padding: 0.4rem 0.6rem;
    border-radius: 20px;
    background: #111;
    color: #fff;
    z-index: 2;
    justify-self: center;
}

.road-cap.start {
    background: linear-gradient(135deg, #f31606fa, #ff0101);
    box-shadow: #111;
}

.road-cap.end {
    background: linear-gradient(135deg, #38ce12, #35fa04);
    box-shadow: #111;
}

/* ================= NODE SPACING FIX ================= */

.event-node {
    justify-self: center;
    z-index: 2;
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {
    .roadmap-wrapper {
        overflow-x: auto;
    }

    .road-line {
        min-width: 900px;
    }

    .category-label {
        display: none;
    }
}

/* ================= FIX: EVENT NODES ================= */

.event-node {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    z-index: 3;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* CATEGORY COLORS */
.event-node.pre {
    background: #eb8c3f;
}

.event-node.day1 {
    background: #c9660a;
}

.event-node.day2 {
    background: #9e6208d3;
}

/* HOVER FEEDBACK */
.event-node:hover {
    transform: scale(1.4);
    box-shadow: 0 0 0 6px rgba(0,0,0,0.08);
}

/* ================= PIN TOOLTIP ================= */

.event-node::after {
    content: attr(data-icon);
    position: absolute;
    top: -46px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    background: white;
    width: 38px;
    height: 38px;
    border-radius: 50% 50% 50% 0;
    transform-origin: bottom center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
    transition: transform 0.25s ease;
}

/* Tooltip text */
.event-node::before {
    content: attr(data-title) " — " attr(data-desc);
    position: absolute;
    top: -78px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    background: #111;
    color: white;
    font-size: 0.65rem;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    white-space: nowrap;
    transition: transform 0.25s ease;
}

/* Hover activate */
.event-node:hover::after,
.event-node:hover::before {
    transform: translateX(-50%) scale(1);
}

/* ================================
   MASTER VARIABLES (EASY TO EDIT)
================================ */
:root {
    --card-bg: #EEE0D0;
    --shadow-glow: rgba(150, 110, 70, 0.35);
    --shadow-soft: rgba(150, 110, 70, 0.18);
    --accent-color: #6b4a2d;
    --text-color: #2b2b2b;
    --button-bg: #7a3f3f;
    --button-bg-hover: #8a623f;
    --button-text: #ffffff;
}

/* ================================
   EVENT CARD BASE
================================ */
.event-card {
    width: 95%;
    margin: 2.5rem auto;
    background-color: var(--card-bg);
    box-shadow:
        0 8px 24px var(--shadow-soft),
        0 0 18px var(--shadow-glow);
    border-radius: 14px;
    overflow: hidden;
}

/* ================================
   CARD INNER LAYOUT
================================ */
.event-card-inner {
    display: flex;
    width: 100%;
    min-height: auto;
}

/* Direction Control */
.event-card-inner.image-left {
    flex-direction: row;
}

.event-card-inner.image-right {
    flex-direction: row-reverse;
}

/* ================================
   IMAGE SECTION
================================ */
.event-image {
    flex: 0 0 38%;
    max-width: 38%;
}

.event-image img {
    width: 100%;
    height: 100%;
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 15px;
    padding-bottom: 15px;
    border-radius: 5px;
    object-fit: contain;
    display: block;
}

/* ================================
   CONTENT SECTION
================================ */
.event-content {
    flex: 1;
    padding: 2.2rem 2.5rem;
    color: var(--text-color);
}

.event-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: var(--accent-color);
}

/* Text justification everywhere */
.event-content p,
.event-content li {
    text-align: justify;
    line-height: 1.65;
    font-size: 1rem;
}

/* ================================
   DESCRIPTION BLOCK
================================ */
.event-description p {
    margin-bottom: 1rem;
}

/* ================================
   ASTRONOMY-STYLE STAR BULLETS
================================ */
.event-content ul {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0 1.5rem;
}

.event-content ul li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.7rem;
}

/* Professional star bullet */
.event-content ul li::before {
    content: "✦";
    position: absolute;
    left: 0;
    top: 0.1rem;
    color: var(--accent-color);
    font-size: 1.1rem;
    text-shadow: 0 0 6px rgba(107, 74, 45, 0.4);
}

/* Subtle hover effect for bullet lines */
.event-content ul li:hover {
    transform: translateX(4px);
    transition: transform 0.25s ease;
}

/* ================================
   PRIZES & CONTACT HEADINGS
================================ */
.event-prizes h4,
.event-contact h4 {
    margin-top: 1.8rem;
    margin-bottom: 0.6rem;
    font-size: 1.15rem;
    color: var(--accent-color);
}

/* ================================
   CONTACT TEXT
================================ */
.event-contact p {
    margin: 0.35rem 0;
    font-weight: 500;
}

/* Placeholder styling */
.placeholder {
    opacity: 0.65;
    font-style: italic;
}

/* ================================
   REGISTER BUTTON (GLOBAL)
================================ */
.event-action {
    margin-top: 2rem;
}

.register-btn {
    display: inline-block;
    padding: 0.7rem 1.6rem;
    background-color: var(--button-bg);
    color: var(--button-text);
    font-weight: 600;
    text-decoration: none;
    border-radius: 999px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px #7a3f3f;
}

.register-btn:hover {
    background-color: var(--button-bg-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(107, 74, 45, 0.55);
}

/* ================================
   RESPONSIVE BEHAVIOR
================================ */
@media (max-width: 900px) {
    .event-card-inner {
        flex-direction: column !important;
    }

    .event-image {
        max-width: 100%;
        flex: none;
        height: 240px;
    }

    .event-content {
        padding: 1.8rem;
    }
}

/* ================================
   PREMIUM CARD HOVER EFFECT
   (APPENDED — SAFE TO LOCK)
================================ */
.event-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.event-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 14px 32px rgba(150, 110, 70, 0.28),
        0 0 28px rgba(170, 125, 80, 0.45);
}

/* ================================
   CENTRAL NAVIGATOR
================================ */
.event-navigator {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin: 3rem 0;
}

.nav-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: rgba(107, 74, 45, 0.35);
    cursor: pointer;
    transition: all 0.25s ease;
}

.nav-dot:hover {
    transform: scale(1.4);
    background-color: #6b4a2d;
}

.nav-dot.active {
    background-color: #6b4a2d;
    box-shadow: 0 0 10px rgba(107, 74, 45, 0.7);
}

/* ===============================
   ABOUT THE EVENTS - TITLE CARD
================================ */

.events-about-card {
    width: 100%;
    background-color: #EEE0D0;
    padding: 3.5rem 3rem;
    margin: 3rem 0;
    border-radius: 18px;

    /* same visual gap + shadow logic as event cards */
    box-shadow:
        0 0 0 6px rgba(233, 155, 20, 0.15),
        0 18px 40px rgba(110, 85, 45, 0.25);

    box-sizing: border-box;
}

.events-about-title {
    font-size: clamp(2.1rem, 3vw, 2.6rem);
    font-weight: 700;
    color: #4b3521; /* solid academic brown */
    text-align: center;
    margin-bottom: 1.8rem;
    letter-spacing: 0.4px;
}

.events-about-text {
    max-width: 1100px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #5a4630;
    text-align: justify;
}

/* Mobile refinement */
@media (max-width: 768px) {
    .events-about-card {
        padding: 2.5rem 1.5rem;
    }

    .events-about-text {
        font-size: 1rem;
    }
}

#Theme {
    text-align: center;
    font-weight: 600;
    margin-top: 1.2rem;
    color: #4b3521;
    letter-spacing: 0.3px;
}

.intro-theme {
    text-align: center;
    font-weight: 600;
    margin-top: 1.2rem;
    color: #ffffff;
    letter-spacing: 0.3px;
}

.footer {
    background-color: #8b3a3a;
    color: #ffffff;
    width: 100%;
    padding: 14px 12px;
    font-family: Arial, Helvetica, sans-serif;
}

.footer-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 14px;
}

.footer-text {
    font-weight: 600;
}

.footer a {
    color: #ffffff;
    text-decoration: none;
}

.footer a i {
    font-size: 16px;
}

.footer a:hover i {
    opacity: 0.75;
}

.separator {
    opacity: 0.6;
}

.footer-bottom {
    text-align: center;
    margin-top: 6px;
    font-size: 13px;
    opacity: 0.9;
}

/* ===============================
   FIXED BUTTONS — GLOBAL
================================ */

.fixed-scroll-controls {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}

.scroll-btn {
    background: #7a3f3f;
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.85rem;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.scroll-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.35);
}

/* ===============================
   EVENT NAVIGATOR — BOTTOM RIGHT
================================ */

.fixed-event-navigator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}

.fixed-event-navigator summary {
    list-style: none;
    cursor: pointer;
    background: #7a3f3f;
    color: #fff;
    padding: 12px 18px;
    border-radius: 14px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.fixed-event-navigator summary::-webkit-details-marker {
    display: none;
}

.nav-popup {
    margin-top: 12px;
    background: #EEE0D0;
    padding: 18px 20px;
    width: 260px;
    border-radius: 18px;
    box-shadow: 0 20px 45px rgba(0,0,0,0.35);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ===============================
   NAV SECTIONS
================================ */

.nav-section h4 {
    margin: 0 0 6px;
    font-size: 0.85rem;
    color: #4b3521;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-section a {
    display: block;
    padding: 6px 4px;
    font-size: 0.9rem;
    color: #5a4630;
    text-decoration: none;
    border-radius: 6px;
}

.nav-section a:hover {
    background: rgba(139,106,63,0.15);
}

/* ===============================
   MOBILE ADJUSTMENTS
================================ */

@media (max-width: 768px) {
    .nav-popup {
        width: 220px;
        font-size: 0.85rem;
    }

    .fixed-scroll-controls {
        left: 10px;
        bottom: 10px;
    }

    .fixed-event-navigator {
        right: 10px;
        bottom: 10px;
    }
}
